﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using QuanLyRapChieuPhim.DAO;
using QuanLyRapChieuPhim.DTO;

namespace QuanLyRapChieuPhim.BUS
{
    class TTDatVeBUS
    {
        TTDatVeDAO DAO;

        public TTDatVeBUS()
        {
            DAO = new TTDatVeDAO();
        }

        public BindingList<TTDatVeDTO> GetList_QL()
        {
            return DAO.GetList_QL();
        }

        public BindingList<TTDatVeDTO> GetList_QL_DaXoa()
        {
            return DAO.GetList_QL_DaXoa();
        }

        public BindingList<TTDatVeDTO> GetList_KhachHang(int _Ma)
        {
            return DAO.GetList_KhachHang(_Ma);
        }

        public TTDatVeDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }

        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }

        public bool Delete_HetHan()
        {
            return DAO.Delete_HetHan();
        }

        public bool UnDelete(int _Ma)
        {
            return DAO.UnDelete(_Ma);
        }

        public bool Add(TTDatVeDTO _DTO)
        {
            return DAO.Add(_DTO);
        }

        public bool Update(TTDatVeDTO _DTO)
        {
            return DAO.Update(_DTO);
        }

        public bool BanVe(int _Ma)
        {
            return DAO.BanVe(_Ma);
        }
    }
}
